﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using WJSHWebApi.DBModel;
using WJSHWebApi.InterFace;
using System.Linq;

namespace WJSHWebApi.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class WasteGet : ControllerBase
    {
        private IDBInterface iDBInterface;
        public WasteGet(IDBInterface dBInterface)
        {
            iDBInterface = dBInterface;
        }
        // GET: api/<Rawfoilmachine>
        [HttpGet]
        public IEnumerable<WasteGet_Entity> Get()
        {
            return iDBInterface.Where<WasteGet_Entity>(x => x.IsEnable == true).ToList();
        }

    }
}

